Skip to content

Conversation

@dajimenezriv-internxt
Copy link
Contributor

@dajimenezriv-internxt dajimenezriv-internxt commented Feb 2, 2025

What

This PR solves the bug from ticket https://inxt.atlassian.net/browse/PB-3776.
This solves also the issue #111.

Problem

Currently, we were using the property blocks of a file to difference between the event of fetch data (double click on a file) and hydratie (always keep on this device). However, zip files and maybe other files have 0 blocks always, so it wasn't working there.

Solution

Currently, there is a variable calle fileInDevice that manages files that are hydrated, however, it wasn't taking into account neither files that were hydrated in the initialization of the virtual drive nor files that were hydrated using fetch data (double click). We are going to fix this and that will fix also the bug, because we won't be looking anymore in the file stats, we will look only if the file is hydrated (is in the device) or not.

@dajimenezriv-internxt dajimenezriv-internxt self-assigned this Feb 2, 2025
@dajimenezriv-internxt dajimenezriv-internxt marked this pull request as ready for review February 4, 2025 11:47
@dajimenezriv-internxt dajimenezriv-internxt marked this pull request as draft February 5, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants